package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.SysMenuDAO;
import top.zywork.dos.SysMenuDO;
import top.zywork.dto.SysMenuDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.SysMenuService;

import javax.annotation.PostConstruct;

/**
 * SysMenuServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-09-25<br/>
 *
 * @author http://zywork.top 危锦辉
 * @version 1.0
 */
@Service(value = "sysMenuService")
public class SysMenuServiceImpl extends AbstractBaseService implements SysMenuService {

    private SysMenuDAO sysMenuDAO;

    @Autowired
    public void setSysMenuDAO(SysMenuDAO sysMenuDAO) {
        super.setBaseDAO(sysMenuDAO);
        this.sysMenuDAO = sysMenuDAO;
    }

    @PostConstruct
    public void init() {
        super.init(SysMenuDO.class, SysMenuDTO.class);
    }
}
